/* HealthInfo 页面样式 */

.health-info-container {
  min-height: 100vh;
  background: #f5f5f5;
}

.header {
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-button {
  border: none;
  background: none;
  font-size: 18px;
  margin-right: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #f0f0f0;
}

.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.search-container {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #1677ff;
}

.search-button {
  padding: 8px 16px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.search-button:hover {
  background: #0958d9;
}

.articles-container {
  padding: 16px;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-content {
  display: flex;
  gap: 12px;
}

.article-text {
  flex: 1;
}

.article-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.article-summary {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-tag {
  font-size: 12px;
  color: #6b7aff;
  background: #f0f2ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-time {
  font-size: 12px;
  color: #999;
}

.article-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #8390a3;
}

.article-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-button {
  padding: 12px 24px;
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.load-more-button:hover:not(:disabled) {
  background: #0958d9;
}

.load-more-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.no-more-text {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 20px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #666;
}

.empty-subtitle {
  font-size: 14px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .articles-container {
    padding: 12px;
  }
  
  .article-card {
    padding: 12px;
  }
  
  .article-title {
    font-size: 15px;
  }
  
  .article-summary {
    font-size: 13px;
  }
  
  .article-cover {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .articles-container {
    padding: 8px;
  }
  
  .article-card {
    padding: 8px;
  }
  
  .article-content {
    gap: 8px;
  }
  
  .article-title {
    font-size: 14px;
  }
  
  .article-summary {
    font-size: 12px;
  }
  
  .article-cover {
    width: 60px;
    height: 60px;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

